<?php
header('Content-type:text/html;charset=utf8');
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:xjh
 * Date:2016-3-1
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet"  href="<?php echo backweb_CSS_URL;?>index.css" />
<link rel="stylesheet"  href="<?php echo backweb_CSS_URL;?>common.css" />
<script type="text/javascript" src="<?php echo backweb_JS_URL;?>jquery.js"></script>
<style>
	table tr:hover{
		background:#edf6fa;
}
</style>
<script>
function updbrand($brand_id){
	parent.location.href="./index.php?r=backweb/brand/brandupd&brand_id="+$brand_id;
}
</script>
</head>
<body>

<div id="table" style="margin: 10px">
        <div >
        		<form action="./index.php?r=backweb/order/updorder" method="post" id="f" name="form1">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="80">订单号</th>
                   <th width="80">商品名</th>
                   <th width="200">数量</th>
                   <th width="400"><input type="submit" name="send" value="更新信息" style="width:50px;height:25px;background:#ccc;border:1px solid #fff;cursor: pointer;border-raduis:10px;"  id="submit"  />价格(实付款)</th>
                   <th width="400">订单状态</th>
                   <!--暂时不扩展此项目 <th width="80">无效订单</th> -->
                   <!--暂时不扩展此项目 <th>排序</th> -->
                </tr>
         	<?php $i = 0;foreach ($order_info as $v) {?>
         	<tr class="tr <?php if(!$v['active']) echo "disableded" ?>">
         		<td class="td_center"><input type="hidden" value="<?php echo $v['order_no']; ?>" name="order_no[]" /><?php echo $v['order_no']; ?></td>
         		<td class="td_center" style="width:620px;"><input type="hidden" value="<?php echo $v['goods_id'];?>" name="goods_ids[]" /> <a href="index.php?r=goods/details&_goods_id=<?php echo $v['goods_id'];?>" target="_blank" style="text-decoration:underline;" ><?php echo $v['goods_name']; ?></a></td>
         		<td class="td_center"><?php echo $v['goods_nums'];?> </td>
         		<td class="td_center"><input type="text" name="price[]" value="<?php echo sprintf("%.2f",$v['order_fee']);?>" style="border:1px solid #ccc;width:90px;text-align:center;" /></td>
         		 <td class="td_center" >
              <select style="border:1px solid #ccc" name="order_status[]">
                <?php foreach($order_status as $_v){?>
                <option value="<?php echo $_v['order_status']?>" <?php if($_v['order_status'] == $v['order_status_id']) echo "selected='true'" ?> ><?php echo $_v['order_status_name']?></option>
                <?php }?>
              </select>
             </td>
            <!--暂时不扩展此项目 <td class="td_center"  id="active" ><a href=""><?php echo $active[$v['active']]; ?></a></td> -->
           <!--暂时不扩展此项目 <td class="td_center" ><input type="text" name="sort[]" value="<?php echo $v['order_sort']; ?>" style="width:40px;text-align:center;border:1px solid #ccc"  /></td></tr> -->
         	</tr>		
			<?php }?>
              </table>
			</form>
			
			<!-- 暂时不扩展分页功能
			<div class="page" style="text-align: center;margin-top: 5px">
                <div class="pagination">
                  <ul>
                      <li class="first-child"><?php echo @$page_list[0];?></li>
                      <li class="disabled" ><?php echo @$page_list[1];?></li>
                      <li class="active"><?php echo @$page_list[2];?></li>
                      <li><?php echo @$page_list[3];?></li>
                      <li><?php echo @$page_list[4];?></li>
                  </ul>
			</div>
			</div> -->
        </div>
        	<div style="text-align:center;">
				<p>共执行<em style="font-weight:bold;"><?php echo @$number;?></em>个sql，查询到<em style="font-weight:bold;"><?php echo @$info_count;?></em>条记录，用时 <em style="font-weight:bold;"><?php echo @$times;?></em> 秒</p>
				<p>版权所有 © 2016-2017 <em style="font-weight:bold;">xjh&lj</em>，并保留所有权利。</p>
			</div>
     </div>
	
</body>
</html>